package com.example.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;

@Data
@Document(indexName = "airparking")
public class Parking implements Serializable {
    @Id
    private String parkingId;

    @Field(type = FieldType.Text)
    private String propertyId;

    @Field(type = FieldType.Text)
    private String parkingNo;

    @Field(type = FieldType.Text)
    private String rentId;

    @Field(type = FieldType.Text)
    private String rentTime;

    @Field(type = FieldType.Long)
    private Long rentMoney;

    @Field(type = FieldType.Text)
    private String rentWay;

    @Field(type = FieldType.Text)
    private String parkingPropertyRight;

    @Override
    public String toString() {
        return "Parking{" +
                "parkingId='" + parkingId + '\'' +
                ", propertyId='" + propertyId + '\'' +
                ", parkingNo='" + parkingNo + '\'' +
                ", rentId='" + rentId + '\'' +
                ", rentTime='" + rentTime + '\'' +
                ", rentMoney=" + rentMoney +
                ", rentWay='" + rentWay + '\'' +
                ", parkingPropertyRight='" + parkingPropertyRight + '\'' +
                '}';
    }
}